<!--
 * @Description: Web project
 * @Version: 2.0
 * @Autor: WenChing
 * @Email: 2510129345@qq.com
 * @Date: 2020-08-11 16:30:36
 * @LastEditors: WenChing
 * @LastEditTime: 2020-08-11 17:01:32
-->
<template>
    <div>
      <div class="btnparent" @click="registerClick">
        <div class="loginbtn">{{btntext}}</div>
      </div>
    </div>
</template>

<script>
export default {
  props:['btntext'],
    data() {
        return {

        };
    },
    created() {

    },
    mounted() {

    },
    methods: {
      // 点击，向父组件发送数据
      // 父组件通过registerSubmit获取数据
    registerClick(){
      this.$emit('registerSubmit')
    }
        }
};
</script>

<style scoped lang="less">
.btnparent{
  padding: 4.1667vw 2.7778vw;
}
.loginbtn{
  height: 12.5vw;
  background-color: #ff9db5;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6.25vw;
  font-size: 4.4444vw;
}
</style>
